home *** CD-ROM | disk | FTP | other *** search
/ Loadstar 128 #32 / q32side1.d64 / t.masterfile 96 < prev    next >
Encoding:
Text File  |  1992-01-01  |  18.6 KB  |  436 lines

  1.  
  2.  
  3.                          M A S T E R F I L E    9 6
  4.  
  5.                              by Robert B. Cook
  6.  
  7.                   Merged with Concatenator by Terry Ricks
  8.  
  9.  
  10.  FENDER'S PREMUMBLE: Terry Ricks of San Antonio TX sent me a revised
  11. version of MASTERFILE II (published on LS 128 #14) that had the
  12. Concatenator and the upgrades (from LS 128 #18) merged into the program.
  13. Now you can easily connect data files to each other without leaving the
  14. main program.  Thanks, Terry!  Since searching is one of the most useful
  15. things you can do with a database program, being able to hook separate data
  16. files together is important for full searches of files you might prefer to
  17. keep separate for one reason or another.  Now here are the docs for
  18. MASTERFILE '96 as written by the author, Bob Cook.
  19.  
  20.  
  21.     MASTERFILE is a database management program for the C-128.  It's
  22. memory-based and uses SEQuential files.  It will allow you to create your
  23. own database, choose the field titles, the number and length of the fields
  24. and print the records in the form of lists or labels.
  25.  
  26.     MASTERFILE can lend itself to many applications.  It could, for
  27. example, be used as an appointment calendar, memo pad, address/phone list,
  28. disk label maker, etc.  The easiest way to learn to use MASTERFILE is to
  29. create your own data file using the following instructions.  It's a good
  30. idea to print out this text file by using the Print function of the
  31. LOADSTAR 128 menu.
  32.  
  33.  
  34.  Initialize New File
  35.  -------------------
  36.  
  37.     The first thing you must do is create or initialize your new file.
  38. Choose Menu option 1, Initialize New File.  Any choice other than
  39. Initialize or Load File From Disk will display an error message to let you
  40. know that there are no records or file in memory.  Let's learn how to use
  41. MASTERFILE II by creating a database called "friends".  It will be an
  42. address/phone list.  Put the highlight bar on Initialize New File and press
  43. RETURN.
  44.  
  45.     You'll be asked for the number of fields.  Enter 7 for this sample.
  46. Keep in mind that when you create your file, you're defining the structure
  47. to which all of your records must conform, so you should carefully evaluate
  48. your choice of fields.  It is possible to change the structure of the file
  49. by using Revise File Structure but if you have a large file, restructuring
  50. it may cause problem.  These will be explained later.
  51.  
  52.     Enter the following information at the prompts:
  53.  
  54.  FIELD       TITLE          LENGTH
  55.  ------------------------------------
  56.    1        Last Name          12
  57.    2        First Name         10
  58.    3        Street             20
  59.    4        City               16
  60.    5        State               2
  61.    6        ZIP                10
  62.    7        Phone              12
  63.  
  64. Note that the ZIP code field allows for nine digits plus a dash, and the
  65. phone field allows for area codes.
  66.  
  67.     After the last item is entered the approximate amount of record space
  68. will be displayed.  If this amount is acceptable then press Y to return to
  69. the Main Menu.
  70.  
  71.  
  72.  Add Records
  73.  -----------
  74.  
  75.     Then choose Add Records to File.  Enter five or so records into your
  76. file.  You may enter an up arrow (^) whenever you want to repeat the data
  77. from the previous record.  If your friends are all from the same city, this
  78. will save you plenty of typing.
  79.  
  80.     MASTERFILE will accept most SHIFTed characters, graphics, colons, semi-
  81. colons and commas.  HOME will take you to the beginning of the line.  TAB
  82. or the CRSR keys will move the cursor along the line.  INST and DEL work as
  83. you would expect.
  84.  
  85.     After entering your records, press the ESC key to return to the Main
  86. Menu.  As a matter of fact, almost ANYTIME you want to return to a previous
  87. menu, press ESCape.
  88.  
  89.  
  90.  Manage Records
  91.  --------------
  92.  
  93.     Next, choose Manage Records.  A new menu will be displayed allowing you
  94. to View, Search, Revise, Delete or Sort your records.  Choose View
  95. Individual records.
  96.  
  97.     Record #1 will be displayed along with a sub-menu.  As indicated by the
  98. menu, you may step through the records in ascending or descending order
  99. using the + and - keys.  The other options are:
  100.  
  101.  1.  Goto - You'll be prompted to enter the record number.
  102.  
  103.  2.  Print - Prints the record currently displayed.  Be sure to have your
  104. printer hooked up and switched on.
  105.  
  106.  3.  Copy - Allows you to copy a whole record to another, existing, record.
  107. Just enter the number of the record you want the displayed record to be
  108. copied to.
  109.  
  110.  4.  Revise - Allows you to make modifications to the record currently
  111. displayed.  You will be prompted for the field number that you wish to
  112. revise.
  113.  
  114.  5.  Delete - Removes the currently displayed record from your file.  Press
  115. X to delete or ESC to escape.  If the records were previously sorted then a
  116. deletion may require a resort.  A message will be displayed to make you
  117. aware of this.
  118.  
  119.  6.  Exit - Takes you back to the Manage Records Menu.
  120.  
  121. NOTE:  If you have a block of records to revise or delete, it's more
  122. convenient to use the Revise or Delete Selected Records option, which is
  123. explained below.
  124.  
  125.     Search for Common Items allows you to search through your file to
  126. locate records with a field containing common data.  At the prompts enter
  127. the field you wish searched, then the type of search, Full, Specific or
  128. Unequal.  Then enter the characters or items you wish to search for.
  129.  
  130.   Full - search the full length of the field and will display all records
  131. with a match.
  132.  
  133.   Specific - search only that portion of the field you have indicated.  For
  134. example, if you wish to search the phone field for numbers with the calling
  135. area 456, prefix the search characters with question marks to indicate the
  136. position of the numbers, ????456.  The search will begin with the fifth
  137. character, disregarding the first four, the area code and the dash.  This
  138. prevents the search from locating telephone numbers with 456 in any other
  139. position.
  140.  
  141.   Unequal - the exact opposite of the specific search, in that it locates
  142. records not equal to the selected characters.  Indicate the position of the
  143. characters just as you would in the specific search.
  144.  
  145.    Revise Selected Records and Delete Selected Records allow you to revise
  146. or delete selected blocks of records.  The prompt requests you to enter the
  147. range of records.  If you want to revise or delete only one record, enter
  148. it only then press RETURN.  One thing to remember when revising records,
  149. the change you enter affects all of the records in the range you've
  150. selected.
  151.  
  152.    Sort All Records enables you to sort your records by up to three fields.
  153. Enter the field number for the primary field sort and then the first and
  154. second subsort field.  The subsorts are used when a finer sort is required.
  155. For instance, when alphabetizing your file by name, the primary field would
  156. be field 1, Last Name, and the first subsort would be field 2, First Name.
  157. If both might be identical then the second subsort could be by state or
  158. ZIP.  If a subsort isn't desired, then enter 0 or press RETURN.
  159.  
  160.     Because file data is stored as strings, numbers are sorted according to
  161. their position within the string, and not by their value.  Therefore,
  162. numbers such as birthdays, (032753), addresses, (050 Main St.), etc. should
  163. be consistent in length and, if necessary, prefixed with zeroes.
  164.  
  165.  
  166.  Revise File Structure
  167.  ---------------------
  168.  
  169.     If, after using MASTERFILE for a time, you decide that your file
  170. structure doesn't meet your present needs, you can make the appropriate
  171. changes quite easily with this option from the Main Menu.
  172.  
  173.     A new menu allows you to Change the field Name or Length, Add or Delete
  174. a Field, or Reorder the Fields.  Choose an option and, at the prompts,
  175. enter the field number and the change.
  176.  
  177.     When a field or field name is lengthened, or a field is added, you must
  178. realize that this will reduce the number of available records.  To prevent
  179. the possible loss of some records when the file is almost full, be sure to
  180. have a current copy of your file saved to disk before you attempt this. You
  181. only have to worry about this when you have an almost-full file.
  182.  
  183.     Also, when adding a field, (unless a field has been deleted in the
  184. current file), the file must be saved to complete the addition of the new
  185. field and then reloaded before you can access the new field.
  186.  
  187.  
  188.  Save File To Disk
  189.  -----------------
  190.  
  191.     Data files have the unique prefix "mf:" automatically added when the
  192. file is saved to indicate that this is a MASTERFILE data file.  A list of
  193. the MASTERFILE files on the disk will be displayed.  Do not enter the "mf:"
  194. prefix.  It will be entered for you.
  195.  
  196.     If there is already a file of the same name as the one you want to
  197. save, you'll be asked if you would like to rename the existing file.  If
  198. you enter N for No, the file will be scratched.  If you enter Y for Yes,
  199. the file, if it exists, will be renamed with the suffix ":2" to indicate
  200. that this is a back-up or an old version.  Existing files with the suffix
  201. ":2" will be scratched.
  202.  
  203.  
  204.  Load File From Disk
  205.  -------------------
  206.  
  207.     This works the same as the Save routine.
  208.  
  209.  
  210.  Disk Utilities
  211.  --------------
  212.  
  213.     For your convenience, this module lets you list the directory, rename
  214. or scratch files, format a disk or change the drive number, and concatenate
  215. (link) files.
  216.  
  217.     When renaming or scratching files, you are required to indicate what
  218. type of file you are dealing with; MASTERFILE data (mf:), Report (mr:), or
  219. Label (ml:).
  220.  
  221.     One of the options, Drive Commands, allows you to Validate, Initialize,
  222. Read the error channel and select whether you are in 1541 or 1571 mode. See
  223. your drive manual for disk formatting and drive number info.
  224.  
  225.  NOTE: Do not, under any circumstances, validate a disk with Geos files.  A
  226. disk with Geos files can only be validated from within Geos.
  227.  
  228.     The Concatenator module allows you to put two or more data files
  229. together as one file.  Then you can search or work on the whole thing as
  230. one file.  The directory is shown on the screen so you can easily enter the
  231. names of the files you want hooked together.
  232.  
  233.  
  234.  Format/Print Records
  235.  --------------------
  236.  
  237.      After you've entered the desired number of files, you'll probably want
  238. to format them for a report, a list, labels or signs, and then print them
  239. out.  You may also print your records unformatted.
  240.  
  241.  
  242.  Format Reports and Lists
  243.  ------------------------
  244.  
  245.     This takes you to a menu with four options: Define/Review Format, Save
  246. File to Disk, Load File from Disk and Exit to Format Menu.  Choose the
  247. first option, Define/Review Format.
  248.  
  249.     Your first entry will be the report width.  If you're using a standard
  250. type size of ten characters per inch and paper width of 8 1/2 inches, then
  251. enter 80.  This will give you 80 characters per line with 1/4 inch borders.
  252. Adjustments may be made in the report width for paper or type size that
  253. varies from the above.
  254.  
  255.     Next, you may enter up to five title lines, all of which will be
  256. automatically centered when printed out.  Go ahead and type in a title or
  257. two.  Then, indicate the number of columns you want, from 1 to 10.  Each
  258. column and field within a column will be separated by one space, so take
  259. that into account.  Let's use 5.
  260.  
  261.     Column width is determined by the data each column will hold.  The five
  262. columns you specified will hold the following fields: Name, Street, City,
  263. State and ZIP, and phone.  The field lengths are displayed directly above
  264. the prompt to aid you.
  265.  
  266.     The range shown for column 1 should be (1 to 76), or 80 minus 4 spaces.
  267. If you add up all the field lengths you'll notice that it totals 83,
  268. obviously too wide to fit the 76 columns allowed.  So we'll reduce the
  269. column width for some fields.
  270.  
  271.     The first column will hold two fields, First and Last Names.  The total
  272. length of these fields equals 22, but because most names will be less than
  273. 22 characters, it should be safe to enter 20 for the width.  The fields for
  274. the second column, Street, equal 20.  Enter 18 for this width and 13 for
  275. the city.  The last two column widths are 7 and 18.  The total of the
  276. columns will be the maximum 76 spaces.
  277.  
  278.     At times it may be desirable to separate two columns with more than one
  279. space.  If so, add an extra column then set the width to the number of
  280. spaces desired minus 1.
  281.  
  282.     If there are spaces remaining, the next prompt asks you to specify the
  283. number of spaces the columns are to be indented.  If you use less than the
  284. maximum number of columns for data then this feature will allow you to
  285. center the report on the paper.  For our example, there are no spaces
  286. remaining, so this prompt won't be displayed.
  287.  
  288.     Enter the headings for each column at the prompt.  You may notice that
  289. each heading length is restricted to the width of its respective column;
  290. which means that some headings will have to be abbreviated.
  291.  
  292.     You're allowed five fields per column.  Enter the fields in the order
  293. in which you want them printed. The first column will contain the name
  294. fields in this order: 2, 1, 0, 0, 0.  First name, Last name, then zeroes
  295. for the rest.  Press RETURN after each number.  Do the same for each of the
  296. remaining four colums, entering 3, 0, 0, 0, 0 for the Street field, 4, 0,
  297. 0, 0, 0 for the City field, 5, 6, 0, 0, 0 for the State and ZIP, and 7, 0,
  298. 0, 0, 0 for the Phone field.
  299.  
  300.     The last piece of information required is the columns you would like
  301. totaled, if any.  In this case you'll enter a zero.  If you had data that
  302. you wanted totaled, you'd enter the appropriate column number(s) separated
  303. by commas.
  304.  
  305.     You should now be back at the Format Reports Menu.  It would be a good
  306. idea to save this format now, so choose Save File to Disk from the Reports
  307. and Lists Menu.  If you previously saved your data file, then the filename
  308. you used will be displayed along with the Report Format prefix "mr:" and
  309. all you have to do is press RETURN.  The prefix indicates that this is a
  310. MASTERFILE report file and allows you to save the data and format its files
  311. using a common filename.
  312.  
  313.     Load File from Disk works the same way as Save File from Disk.
  314.  
  315.  
  316.  Format Labels and Signs
  317.  -----------------------
  318.  
  319.     The first option, Define/ Review Format, allows you to define your
  320. label format just as you defined your report format.
  321.  
  322.     Enter the width and height of the label in inches; the whole number
  323. followed by a dash then the fraction. Example: 3-1/2.  You MUST follow the
  324. above format.  Do not leave any blanks.  Enter zeroes wherever a number is
  325. not used.  For our test we'll use a 3 1/2 x 15/16 inch label.  Enter 3-1/2
  326. for the width and 0-15/16 for the height.
  327.  
  328.     Since printers have many different types of print styles, you can
  329. choose the pitch, or number of characters per inch.  For instance, Pica is
  330. usually 10 cpi, Elite is 12 cpi, Condensed Pica is 17 cpi, and Condensed
  331. Elite is 20 cpi on a Star NX-1000 printer.  This allows you to print longer
  332. fields on your labels.  See your printer manual for the pitches your
  333. printer allows.
  334.  
  335.     Next, you'll be prompted to enter the number of rows desired. Displayed
  336. at the top of the screen are the maximum number of rows and characters per
  337. row available to you, as determined by the pitch you chose. We'll need
  338. three rows.  You may find it easier to add blank rows in order to center
  339. the rows vertically within the label, rather than adjusting the labels
  340. within the printer for various label sizes.
  341.  
  342.     If you have a label strip that is more than one label wide, then enter
  343. the number of labels across.  When the labels are printed, a different
  344. record will printed on each label.  Enter 1 for this file.
  345.  
  346.     Enter the fields for each row just as you did when formatting reports.
  347. For the first row, (First, Last Name), enter 2, 1, 0, the second row,
  348. (Street), 3, 0, 0, and the last row, (City, State, ZIP), 4, 5 and 6.
  349.  
  350.     And finally, enter the number of spaces to indent each row for
  351. centering, in this case, 0.
  352.  
  353.     You will return to the Format Labels menu.  Save your label format in
  354. the same manner that you saved your report format.  This file will be
  355. automatically saved with the prefix "ml:" to indicate that it is a
  356. MASTERFILE label file.
  357.  
  358.     Now let's exit to the Format/Print menu.
  359.  
  360.  
  361.  Configure Printer
  362.  -----------------
  363.  
  364.     Next, let's define your printer functions.  This menu will allow you to
  365. configure up to two printers or interfaces.  Pressing Options 1 or 2 will
  366. cause the arrow to move to the printer chosen.  This allows you to have two
  367. printers hooked up to your computer and to place either one on-line.
  368.  
  369.     We'll configure printer #1, so set the arrow at Printer/Interface #1
  370. and choose Enter printer Codes.  At the prompt, enter information to
  371. identify the printer, such as its name.  Next, enter the device number, 4
  372. or 5, whichever the printer is set up for.  This is usually 4.
  373.  
  374.     At this point, if your printer is not attached or switched on, you'll
  375. receive an error message.  You can switch on your printer to continue.  You
  376. can't enter the printer codes unless the printer is connected and on.
  377.  
  378.     You may configure your printer using up to nine function codes.  These
  379. can be found in your printer manual.  You can enter either alpha or numeric
  380. codes.  For example, to start enhanced printing on an Okidata 120, enter
  381. 27, for chr$(27), as the first code and H as the second.  Press RETURN with
  382. no entry to skip a function.
  383.  
  384.     A submenu will be displayed allowing you to revise the information just
  385. entered, test the printer by printing a string of characters, or exit.
  386.  
  387.     The printer configuration data is saved along with the MASTERFILE data
  388. file.  If you would like to preserve it, return to the Main Menu and resave
  389. your file.
  390.  
  391.  
  392.  Print Records Unformatted
  393.  -------------------------
  394.  
  395.     This will print your records unchanged and, if you choose, with the
  396. record number.
  397.  
  398.  
  399.  Print Reports and List
  400.  ----------------------
  401.  
  402.     This will print your records using the report format you designated.
  403.  
  404.  
  405.  Print Labels and Signs
  406.  ----------------------
  407.  
  408.     This will print your records using the labels format you designated.
  409.  
  410.     Each of the Print options above takes you to another menu with four
  411. options:
  412.  
  413.  (1) Print All Records - prints all of your records in the format of your
  414. choice.
  415.  
  416.  (2) Selected Records - allows you to print a consecutive block of records.
  417. Enter the record numbers separated by a dash.
  418.  
  419.  (3) Records with Common Fields - lets you choose the records you wish to
  420. print using the search mode as discussed in Managing Your Records.
  421.  
  422.  (4) Exit to Print Menu (or pressing the ESC key) will abort printing and
  423. return you to the Print menu.
  424.  
  425.     And that takes care of this many-menued program.  Any program this
  426. powerful is going to require your attention but we feel certain that it
  427. will be worth it.  You may want to practice printing out formatted reports
  428. and labels to the back side of some used printer paper till you get the
  429. formatting just as you want it.
  430.  
  431.     Robert B. Cook and LOADSTAR hope you enjoy and use MASTERFILE II for
  432. all your database needs.
  433.  
  434.                   \\\\\ R - Run   RETURN - Menu \\\\\
  435.                                                                            
  436.